import java.util.Random;

/*
  蚂蚁森林
 */
public class WorkTest120301 {
    public static void main(String[] args) {
        int[] arr = new int[30];
        Random r = new Random();
        int sum = 0;
        //建立循环遍历数组
        for (int i = 0; i < arr.length; i++) {
            arr[i] = r.nextInt(101);
            if (arr[i] >= 5) {
                sum += arr[i];
            }
        }
        System.out.println("今日小明偷走好友" + sum + "g能量");
    }
}
